import request from '@/utils/request'

// 获取图片验证码
export const getImageCodeApi = (clientToken) => request({
  url: `/user-service/user/imageCode/${clientToken}`
})
// 登录
export const login = (data) => request({
  url: '/user-service/user/login',
  method: 'POST',
  data
})
// 获取用户资料
export const getUserInfo = (id) => request({
  url: `/user-service/user/${id}`
})
